package dao;

import pojo.User;

import java.sql.SQLException;
import java.util.List;

public interface UserDao {
    //根据用户名查询用户对象
    User selectByUsername(String username) throws SQLException;
    //注册用户
    int addUser(User user);
    //查询所有用户
    List<User> selectAll() throws SQLException;
}
